#!/bin/bash
exec 8<&0
exec < output
read a
read b
echo "--------------------"
echo $a
echo $b
echo "close FD8"
exec 0<&8 8<&-
echo -n "Enter data:"
read c
echo $c
